/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.generate.entity.GenerateContent
   Module Description   :

   Date Created      : 2009/12/29
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.generate.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author feeling.wang
 * 
 */
@Entity(name = "generateContent")
@Table(name = "EC_GENERATE_CONTENT")
public class GenerateContent extends BaseEntity {
	private static final long serialVersionUID = -4571928491595050568L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_generate_content")
	@SequenceGenerator(name = "seq_ec_generate_content", sequenceName = "SEQ_EC_GENERATE_CONTENT")
	@Column(name = "ID")
	private Long id;

	@Column(name = "ADVERTISE_ID")
	private Long advId;

	@Lob
	@Column(name = "CONTENTS", nullable = false)
	private String contents;

	@Column(name = "SHOW_SEQ")
	private int showSeq;

	public Long getAdvId() {
		return advId;
	}

	public String getContents() {
		return contents;
	}

	public Long getId() {
		return id;
	}

	public int getShowSeq() {
		return showSeq;
	}

	public void setAdvId(Long advId) {
		this.advId = advId;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setShowSeq(int showSeq) {
		this.showSeq = showSeq;
	}
}